﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Game/GameView.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="Heritage.Codebox" %>
<%@ Import Namespace="Heritage" %>
<%@ Import Namespace="Heritage.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<% if (ViewData["UserData"] != null)
   { %>
   <form method="post" name="postmessage" action="/Game/PostMessage">
   <input type="hidden" name="game" value="<%=ViewData["Game"] %>" />
<span style="color:#039; font-weight:bold;">Адресат: <%=Utils.GetPossibleAdresseesDropDown(ViewData["Game"] as string, null)%></span><br /><br />
<textarea onfocus="setCursor(document.getElementById('msgtext'), 0, 0)" id="msgtext" name="msgtext" style="width:100%; height:160px; padding: 4px;">
</textarea>
<br />
<br />
<a href="#" class="awesome" onclick="document.postmessage.submit();">Отправить</a>
<%--           <div class="button20" onclick="document.postmessage.submit();" style="float:left;">
                <div class="l"></div>
                <div class="m">Отправить</div>
                <div class="r"></div>
           </div>--%>
</form>
<% } %>
</asp:Content>
